﻿@model Aurora.WebApp.ViewModel.Employee.AddEditTrabajadorViewModel
@{
    ViewBag.Title = Model.TRA_ID.HasValue ? "Editar Trabajador" : "Agregar Trabajador";
}
@section Breadcrumbs{
    <li><a href="@Url.Action("LstTrabajadoresAll", "Employee")"></a>&nbsp;Lista de Empleados</li>
}
<form method="post" class="panel form-horizontal">
    <div class="panel-body">
        @Html.EditorFor(x => x.TRA_CODIGO, new { ancho="1" })
        @Html.EditorFor(x => x.TRA_NOMBRE)
        @Html.EditorFor(x => x.TRA_DNI, new {ancho="2", maxlength = "8" })
        <div class="row form-group">
            <label class="col-sm-3 control-label">Contraseña</label>
            <div class="col-sm-8">
                @Html.PasswordFor(x => x.TRA_CONTRASENA, new { @class = "form-control",style="width:120px" })
                @Html.ValidationMessageFor(x => x.TRA_CONTRASENA)
            </div>
        </div>
        <div class="row form-group">
            <label class="col-sm-3 control-label">Rol</label>
            <div class="col-sm-3">
                @Html.DropDownListFor(x => x.ROL_ID, Model.ListRoles, "[ -Seleccionar- ]", new { @class = "form-control" })
                @Html.ValidationMessageFor(x => x.ROL_ID)
            </div>
        </div>
    </div>
    <div class="panel-footer text-right">
        <button class="btn btn-primary"><i class="fa fa-save"></i>&nbsp;&nbsp;Guardar</button>&nbsp;&nbsp;
        <a class="btn btn-default"  href="@Url.Action("LstTrabajadoresAll", "Employee")"><i class="fa fa-arrow-left"></i>&nbsp;&nbsp;Cancelar</a>
    </div>
</form>
